<?php

use Drupal\shusy_plant_grass_comments\Entity\ShusyPlantGrassComments;

function shusy_plant_grass_comments_shusy_plant_grass_comments_add_page() {
  $e = new ShusyPlantGrassComments();
  module_load_include('inc', 'shusy_plant_grass_comments', 'shusy_plant_grass_comments.forms');
  return drupal_get_form('shusy_plant_grass_comments_shusy_plant_grass_comments_entity_form', $e, 'add');
}

function shusy_plant_grass_comments_shusy_plant_grass_comments_view_page(ShusyPlantGrassComments $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_plant_grass_comments_shusy_plant_grass_comments_edit_page(ShusyPlantGrassComments $e) {
  module_load_include('inc', 'shusy_plant_grass_comments', 'shusy_plant_grass_comments.forms');
  return drupal_get_form('shusy_plant_grass_comments_shusy_plant_grass_comments_entity_form', $e, 'edit');
}

function shusy_plant_grass_comments_shusy_plant_grass_comments_delete_page(ShusyPlantGrassComments $e) {
  module_load_include('inc', 'shusy_plant_grass_comments', 'shusy_plant_grass_comments.forms');
  return drupal_get_form('shusy_plant_grass_comments_shusy_plant_grass_comments_delete_form', $e);
}

